package com.blueocean_health.care.management.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.blueocean_health.care.management.domain.base.SysResult;
import com.blueocean_health.care.management.domain.dto.FundsTypeDto;
import com.blueocean_health.care.management.service.FundsTypeService;

@RestController
@RequestMapping("web/fundsType")
public class FundsTypeController {
	
	@Resource
	private FundsTypeService typeService;

	/**
	 * 获取备用金
	 * @return
	 */
	@RequestMapping("getFundsInfo")
	public SysResult  getFundsTypeInfo(){
		List<FundsTypeDto> selectFundsInfo = typeService.selectFundsInfo();
		return SysResult.ok(0, "success", selectFundsInfo);
	}
	/**
	 * 通用科室
	 * @return
	 */
	@RequestMapping("standard-dept")
	public SysResult  getStandardDeptInfo(){
		List<FundsTypeDto> selectDeptInfo = typeService.selectDeptInfo();
		return SysResult.ok(0, "success", selectDeptInfo);
	}
}
